﻿package net.wangit.framework.action;

import net.wangit.support.Proxy;
import net.wangit.util.Checker;
import net.wangit.util.ClassUtil;

public class ProxyFactory {

	public ProxyFactory() {
	}

	public static Proxy getProxy(String className) throws Exception {
		if (Checker.isEmpty(className))
			return new DefaultProxy();
		else
			return (Proxy) ClassUtil.loadClass(className).newInstance();
	}
}
